﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using NetCoreCMS.Common;
using NetCoreCMS.IServices;
using NetCoreCMS.Models;
namespace NetCoreCMS.Web.Areas.Admin.Controllers.Dialog
{
    public class Dialog_Group_PriceController : ManageController
    {
        private const string WEB_VIEW = "~/Areas/Admin/Views/Dialog/dialog_group_price.cshtml";
        // GET: /admin/Dialog_Group_Price/
        public IUser_groupsService _user_groups { get; set; }
        public ActionResult Index()
        {
            RptBind("where is_lock=0");
            return View(WEB_VIEW);
        }

        #region 数据绑定=================================
        private void RptBind(string _strWhere)
        {
            ViewData["list"] = _user_groups.GetList(_strWhere).OrderBy(a => a.id).ToList();
        }
        #endregion
    }
}
